package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPeripheryDO;
import com.starlink.model.request.MallPeripheryRequest;
import com.starlink.model.vo.MallPeripheryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPeripheryDtoMapper {

    MallPeripheryDtoMapper INSTANCE = Mappers.getMapper(MallPeripheryDtoMapper.class);

    /**
    * DO to VO
    * @param mallPeripheryDO
    * @return
    */
    MallPeripheryVO do2VO(MallPeripheryDO mallPeripheryDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPeripheryDO request2DO(MallPeripheryRequest request);
}
